//
//  MeiSTableCell.m
//  MyProject
//
//  Created by dllo on 15/11/17.
//  Copyright © 2015年 蓝鸥0825. All rights reserved.
//

#import "MeiSTableCell.h"

#define WIDTH self.frame.size.width
#define HEIGHT self.frame.size.height

@implementation MeiSTableCell

- (void)awakeFromNib {
 
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}


- (void)create{
    
    self.label = [[UILabel alloc] init];
    [self addSubview:self.label];
    
    self.view = [[UIImageView alloc] init];
    [self addSubview:self.view];
    
    self.scroll = [[UIScrollView alloc] init];
    [self addSubview:self.scroll];
}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    
    self.label.frame = CGRectMake(0, 0, WIDTH, HEIGHT / 100 * 5);
//    self.label.layer.borderWidth = 1;
    self.label.textAlignment = NSTextAlignmentRight;
    self.label.textColor = [UIColor purpleColor];
    
    self.scroll.frame = CGRectMake(0, HEIGHT / 100 * 5, WIDTH, HEIGHT / 100 * 90);
    self.scroll.layer.borderWidth = 1;
    
    self.view.frame = CGRectMake(0, HEIGHT / 100 * 5, WIDTH, HEIGHT / 100 * 90);
//    self.view.backgroundColor = [UIColor yellowColor];
}





@end








